<%@page import="org.apache.commons.lang3.StringUtils"%>
<%@page import="java.util.Date"%>
<%@page import="itsm.isperp.framework.core.context.ContextHolder"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
  String path = request.getContextPath();
			String basePath = ContextHolder.getWebServerName(request);
%>
<html>
<head>
<c:choose>
	<c:when test="${nocheck eq false }">
		<meta charset="utf-8">
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="Content-Language" content="zh-CN" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="author" content="ISPERP">
		<meta name="Copyright" content="ISPERP" />
		<script type="text/javascript">
			window.location.href = "<%=basePath%>app/help/chrome-frame";
		</script>
</head>
</c:when>
<c:otherwise>

	<title>登录,<%=ContextHolder.getConfigByKey("companyIntro")%>-<%=ContextHolder.getConfigByKey("companyName")%></title>

	<base href="<%=basePath%>">

	<meta charset="utf-8">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta http-equiv="Content-Language" content="zh-CN" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="author" content="ISPERP">
	<meta name="Copyright" content="ISPERP" />

	<link rel="stylesheet" type="text/css"
		href="css/external/jquery.chosen.css" />
	<link rel="stylesheet" href="wro/basic.css" type="text/css"></link>
	<link rel="stylesheet" href="css/login.css" type="text/css"></link>
	<link rel="stylesheet" type="text/css" href="<%=path%>/wro/basic.css" />
	<style type="text/css">
.ico_cmpt {
	margin-right: 5px;
	background: url(img/icons/ico_sprite_login.png) no-repeat -38px 1px #fff;
	padding: 6px 10px;
}
</style>

	<script type="text/javascript" src="<%=path%>/wro/basic.js"></script>
	<script type="text/javascript">
		var isperp={};
		isperp.webPath='<%=path%>';

		if (window.location.href.indexOf('demo.qizh') > -1) {
			if (confirm("您好，请使用正式环境进行操作。")) {
				window.location.href="http://service.zxelec.com/main/login";
			}
		}
	</script>
	<%
	  if (!ContextHolder.isRunMode()) {
	%>
	<script type="text/javascript" src="<%=path%>/wro/isperp.js"></script>
	<%
	  } else {
	%>

	<script src="<%=path%>/js/mango.js"></script>
	<script src="<%=path%>/js/plugins.js"></script>
	<script src="<%=path%>/js/script.js"></script>
	<script src="<%=path%>/js/app.js"></script>
	<script type="text/javascript" src="<%=path%>/js/widget/grid.js"></script>
	<script type="text/javascript" src="<%=path%>/js/widget/tree.js"></script>
	<script type="text/javascript"
		src="<%=path%>/js/widget/processButton.js"></script>
	<%
	  }
	%>

	</head>

	<body>
		<div id="loading-overlay" style="display: none;"></div>
		<div id="loading">
			<span>载入中...</span>
		</div>

		<div class="top">
			<header class="header">
				<h1 class="headerLogo">
					<a href="javascript:void(0);" target="_blank"
						title="${companyName }"><img
						src="<%=ContextHolder.getConfigByKey("companyLogo") %>"
						alt="${companyName }"> </a>
				</h1>
				<span class="headerIntro"> <%=ContextHolder.getConfigByKey("companyIntro")%>
				</span>

			</header>
		</div>
		<section class="main" id="login-main">
			<div class="main-inner" id="mainCnt" style="background: url(${bgImg}) 100% 50% no-repeat;">

			


				<%-- <div id="loginWeChat"
					style="position: absolute;top:250px;right:410px;text-align: center;">
					<h3>微信扫一扫，关注公众服务台</h3>
					<img id="weChatCode" width="135" height="135"
						src=" <%=ContextHolder.getConfigByKey("appQrcode")%>">
				</div> --%>



				<div id="loginBlock" class="login tab-1">
					<div class="loginFunc">
						<div id="lbNormal" class="loginFuncNormal">帐号登录</div>
					</div>

					<div class="loginForm">
						<div class="login-messages ${msgType }">
							<div class="message ">${msg}</div>
						</div>
						<form action="j_spring_security_check" method="post"
							target="_self" class="box validate">

							<div id="idInputLine" class="loginFormIpt showPlaceholder">
								<b class="ico ico-uid"></b> <input tabindex=1 type="text"
									title="请输入帐号" placeholder="请输入帐号"
									class="loginFormTdIpt loginFormTdIpt-focus required"
									name="j_username" id="j_username" />

							</div>
							<div id="pwdInputLine" class="loginFormIpt showPlaceholder">
								<b class="ico ico-pwd"></b> <input tabindex=2 type="password"
									class="loginFormTdIpt loginFormTdIpt-focus required"
									name="j_password" id="j_password" title="请输入密码"
									placeholder="请输入密码" />
							</div>
							<div class="loginFormCheck" style="margin:15px 0 0 25px">
								<div id="lfAutoLogin" class="loginFormCheckInner">
									<input onmouseover="$('#whatAutologinTip').show();"
										onmouseout="$('#whatAutologinTip').hide();" tabindex=4
										type="checkbox" name="_spring_security_remember_me"
										id="_spring_security_remember_me" /><label
										for="_spring_security_remember_me"
										onmouseover="$('#whatAutologinTip').show();"
										onmouseout="$('#whatAutologinTip').hide();">记住密码？</label>
									<div id="whatAutologinTip" style="display: none;">为了您的信息安全，请不要在网吧或公用电脑上使用此功能！
									</div>
								</div>
								<div class="forgetPwdLine">
									<div>&nbsp;</div>
								</div>

							</div>
							<div class="loginFormBtn">
								<button id="loginBtn" class="btn btn-login" tabindex="6"
									type="submit">登&nbsp;&nbsp;录</button>
								<button id="lfBtnReg" class="btn btn-reg" type="reset"
									tabindex="7">重&nbsp;&nbsp;置</button>
							</div>

							<div class="loginFormConf" style="display:none">
								<input id="gotoStyle" name="gotoStyle" vlue="0" type="hidden">
								<div class="loginFormVer">
									<select name="targetUrl" id="targetUrl"
										onchange="setTargetUrlCookies(this)">
										<option value="/main" selected="selected">默认风格</option>
										<option value="/desktop">桌面风格</option>
									</select>

								</div>
							</div>
						</form>

					</div>
					<div id="browserSupport" style="color:red;display: none">
						您当前浏览器版本较低，请查看<a href="<%=basePath%>app/help/chrome-frame">《浏览器支持说明》</a>
					</div>
				</div>
				
			</div>
		</section>
		<div class="copyright">
			<span>©<%=new Date().getYear() + 1900%> ${companyName}</span>
		</div>
		<!--[if lt IE 8]><script type="text/javascript">$("#browserSupport").show();</script><![endif]-->
	</body>
</c:otherwise>
</c:choose>
</html>
